<template>
    <div>
        <el-menu mode="horizontal" default-active="2">
            <el-menu-item index="1">未使用</el-menu-item>
            <el-menu-item index="2">已使用</el-menu-item>
            <el-menu-item index="3">已过期</el-menu-item>
            <el-menu-item style="float:right;">
                <input placeholder="请输入兑换码">
                <a href="">兑换</a>
            </el-menu-item>
        </el-menu>
    </div>
</template>

<script>
    export default {
        
    }
</script>

<style lang="scss" scoped>
.el-menu {
    width: 770px;
    height: 600px;
    margin: 0;
}
.el-menu-item {
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
}
.el-menu-item input {
    float: left;
    height: 26px;
    width: 50px;
    font-size: 12px;
    overflow: hidden;
    padding: 0 10px;
    width: 163px;
    height: 26px;
    border-radius: 3px;
    background-color: #f0f0f0; 
    margin-right: 10px;
    border: none;
    outline: none;
}
.el-menu-item a {
    color: #fff;
    text-decoration: none;
    height: 26px;
    width: 50px;
    float: right;
    border-radius: 3px;
    background-image: linear-gradient(117deg,#ffa778,#ff4c96);
    font-size: 12px;
    text-align: center;
    line-height: 26px;
}
.el-menu-item.is-active {
    border-bottom: 3px solid red;
}
</style>